package net.ikenna.yadet.springjdbc;

import org.springframework.jdbc.datasource.*;

public class YadetTestDataSource extends SimpleDriverDataSource {

    public YadetTestDataSource() {
        super();
        setUrl("jdbc:h2:~/test");
        setUsername("sa");
        setPassword("");
        try{
            setDriverClass(Class.forName("org.h2.Driver"));
        } catch (ClassNotFoundException e){
            throw new RuntimeException("Database driver class not found ", e);
        }
    }
}
